package cn.sumpu.app.guoguojie.biz;

import java.util.List;
import java.util.Map;
import cn.sumpu.app.guoguojie.domain.Comment;
import cn.sumpu.app.guoguojie.exception.AppBusinessException;
import cn.sumpu.app.guoguojie.util.PageModel;

public interface CommentBiz {
	public void insert(Comment comment) throws AppBusinessException;

	public void updateComment(Comment comment) throws AppBusinessException;

	public void deleteCommentById(String id) throws AppBusinessException;

	public Comment getCommentById(String id) throws AppBusinessException;

	public int getCommentCountList(String commentId,String commentIdType)throws AppBusinessException;
	
	public int getCommentByOwnerTypeCount(Map <String, Object> map)throws AppBusinessException;
	
	//根据BlogId集合批量屏蔽评论
	void updateByCommentIdList(String idList, Boolean enabled) throws AppBusinessException;
	//根据BlogId集合批量删除评论
	void deleteByCommentIdList(String idList) throws AppBusinessException;
	//根据条件批量删除评论(参数1.id:commentId 2.type:comment_id_type[可选])
	void deleteCommentByCondition(String id, String type) throws AppBusinessException;
	
	public String insertCommentOrReply(Comment comment) throws AppBusinessException;//评论或回复
	
	public List<Comment> getCommentByDoingId(String doingId) throws AppBusinessException;//查询某一条微博的评论
	
	public void deleteCommentByCommentId (String commentId) throws AppBusinessException;
	
	public PageModel getCommentListByDoingId(String doingId, Integer page) throws AppBusinessException;
	
	public int getMyComCount(String family)throws AppBusinessException;//获取用户家庭对别的用户总评论数
	
	 public PageModel getCommentListByDiscuss(String id, String type,Integer page) throws AppBusinessException;
}
